<?php /* Smarty version Smarty3-SVN$Rev: 3286 $, created on 2011-04-12 10:40:54
         compiled from "/home3/xuanyano/public_html/geek-zoo.com/site/admin/Templates/user_update.html" */ ?>
<?php /*%%SmartyHeaderCode:14029019724da3bbb6659977-24537034%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'a012f96d079d2f79417964c43e0a8a49a6fdad3a' => 
    array (
      0 => '/home3/xuanyano/public_html/geek-zoo.com/site/admin/Templates/user_update.html',
      1 => 1291104874,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '14029019724da3bbb6659977-24537034',
  'function' => 
  array (
  ),
  'has_nocache_code' => false,
)); /*/%%SmartyHeaderCode%%*/?>
<?php $_template = new Smarty_Internal_Template("lib/header.html", $_smarty_tpl->smarty, $_smarty_tpl, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null);
 echo $_template->getRenderedTemplate();?><?php unset($_template);?>
<!--main-->
<div id="main">
  <?php $_template = new Smarty_Internal_Template("lib/history.html", $_smarty_tpl->smarty, $_smarty_tpl, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null);
 echo $_template->getRenderedTemplate();?><?php unset($_template);?>
	<div class="breadcrumb"><a href="?url=index">首页</a> <img src="images/i.png" class="ico"> <a href="?url=administrator">管理员</a> <img src="images/i.png" class="ico"> <a href="?url=administrator/create">创建管理员</a> </div>
	<form action="?url=administrator/update" method="post" accept-charset="utf-8">
	<input type="hidden" name="action" value="model">
	<div class="clearfix m10">
		<div class="sidebar">
			<div class="clearfix m10"><input name="" type="button" class="fr btn_fb" onclick="submit()"></div>
		</div>
		<div class="center">
			<input type="hidden" name="id" value="<?php echo $_smarty_tpl->getVariable('data')->value['id'];?>
">
			<div class="input_title mt10">
				用户名：<input name="info[name]" type="text" value="<?php echo $_smarty_tpl->getVariable('data')->value['name'];?>
">
			</div>
			<div class="input_title mt10">
				别名：<input name="info[nickname]" type="text" value="<?php echo $_smarty_tpl->getVariable('data')->value['nickname'];?>
">
			</div>
			<div class="input_title mt10">
				密码：<input name="info[password]" type="text" >不填写为不更改
			</div>
      <?php if ($_smarty_tpl->getVariable('data')->value['id']>1){?>
			<div class="input_title mt10">
			  <?php  $_smarty_tpl->tpl_vars['val'] = new Smarty_Variable;
 $_from = Config::get('menu'); if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
if ($_smarty_tpl->_count($_from) > 0){
    foreach ($_from as $_smarty_tpl->tpl_vars['val']->key => $_smarty_tpl->tpl_vars['val']->value){
?>
			    <p><?php echo $_smarty_tpl->tpl_vars['val']->key;?>
 :</p>
			    <?php  $_smarty_tpl->tpl_vars['v'] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['val']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
if ($_smarty_tpl->_count($_from) > 0){
    foreach ($_from as $_smarty_tpl->tpl_vars['v']->key => $_smarty_tpl->tpl_vars['v']->value){
?>
			      <?php if (strpos($_smarty_tpl->tpl_vars['v']->value,'/')==false){?>
			        <p><?php echo $_smarty_tpl->tpl_vars['v']->key;?>
: 无权限<input type="radio" name="permission[<?php echo $_smarty_tpl->tpl_vars['v']->value;?>
]" value="0"<?php if (empty($_smarty_tpl->getVariable('data',null,true,false)->value['permission'][$_smarty_tpl->tpl_vars['v']->value])){?> checked<?php }?>> 读<input type="radio" name="permission[<?php echo $_smarty_tpl->tpl_vars['v']->value;?>
]" value="1"<?php if ($_smarty_tpl->getVariable('data')->value['permission'][$_smarty_tpl->tpl_vars['v']->value]==1){?> checked<?php }?>> 改<input type="radio" name="permission[<?php echo $_smarty_tpl->tpl_vars['v']->value;?>
]" value="3"<?php if ($_smarty_tpl->getVariable('data')->value['permission'][$_smarty_tpl->tpl_vars['v']->value]==3){?> checked<?php }?>> 删<input type="radio" name="permission[<?php echo $_smarty_tpl->tpl_vars['v']->value;?>
]" value="7"<?php if ($_smarty_tpl->getVariable('data')->value['permission'][$_smarty_tpl->tpl_vars['v']->value]==7){?> checked<?php }?>></p>
			      <?php }?>
			    <?php }} ?>
			  <?php }} ?>
			</div>
			<?php }?>
		</div>
	</div>
	</form>
</div>
<!--/main-->
<?php $_template = new Smarty_Internal_Template("lib/footer.html", $_smarty_tpl->smarty, $_smarty_tpl, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null);
 echo $_template->getRenderedTemplate();?><?php unset($_template);?>